class Animal :
    def __init__(self,name,age) -> None:
        self.name = name
        self.age  = age
    def eat(self):
        print(f"{self.name}正在吃东西")
        
class Dog(Animal) :
    def __init__(self, name, age,vaccine) -> None:
        super().__init__(name, age)
        self.vaccine = vaccine
if __name__ == "__main__" :
    my_dog = Dog("小汪",4,"True")
    if my_dog.vaccine :
        print(f"{my_dog.name}打过疫苗了")
    else :
        print(f"{my_dog.name}还没打过疫苗")